//
//  SCHomeNavLeftView.m
//  Mutal
//
//  Created by TonyStart on 16/10/18.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCHomeNavLeftView.h"

@interface SCHomeNavLeftView()
@property(nonatomic,strong)UILabel *addressLabel;
@property(nonatomic,strong)UIButton *addressBtn;

@end

@implementation SCHomeNavLeftView


-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

-(void)setupUI{
    _addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width - 15, self.frame.size.height)];
    _addressLabel.textColor = [UIColor colorWithRed:81/255.0 green:200/255.0 blue:195/255.0 alpha:1];
    _addressLabel.text = @"成都";
    _addressLabel.textAlignment = NSTextAlignmentCenter;
    _addressBtn = [[UIButton alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_addressLabel.frame)+1, 0, 15, self.frame.size.height)];
    _addressBtn.backgroundColor = [UIColor redColor];
    [self addSubview:_addressLabel];
    [self addSubview:_addressBtn];
}

@end
